package com.aviator.detective.script.method;

import com.googlecode.aviator.runtime.function.AbstractFunction;
import com.googlecode.aviator.runtime.function.FunctionUtils;
import com.googlecode.aviator.runtime.type.AviatorObject;
import jdk.nashorn.internal.runtime.JSONFunctions;

import java.util.Map;

/**
 * list合并
 */
public class ListMergeMethod extends AbstractFunction {
    @Override
    public AviatorObject call(Map<String, Object> env, AviatorObject arg1, AviatorObject arg2) {
        String targetStr1 = FunctionUtils.getStringValue(arg1,env);
        String targetStr2 = FunctionUtils.getStringValue(arg2,env);
        //if ()
        return null;
    }

    public String getName() {
        return "json.listMerge";
    }
}
